<?php

namespace app\common\model;

use app\common\controller\Helper;
use think\Model;

class LangClassRecite extends Model
{
    use Helper;

    protected $table = 'lang_class_recite';

    const TYPE_WORD = 1;
    const TYPE_SENTENCE = 2;

    public static function attributes($attribute, $key = null)
    {
        $list = [
            'type' => [
                self::TYPE_WORD => '背单词',
                self::TYPE_SENTENCE => '背句子',
            ],
        ];
        return self::attributeReturn($list, $attribute, $key);
    }
}